<!--  -->
<template lang='html'>
  <div class="permis">
    <input id="date" name="dateName" required min="" max="" type="date"  :change="dateChanged" />
  </div>
</template>

<script>
export default {
name:'',
  data () {
    return {
      date:this.dateChanged
    };
  },

  components: {},

  computed: {},

  mounted() {
   console.log(this.date);
  },

  methods: {
    dateChanged($event) {
      this.$emit("dateChanged", $event); //将值放在自定义的事件函数中作为参数
    }
  }
}

</script>
<style lang='css' scoped>
.permis{
  width: 98%;
  text-align: center;
  line-height: 800px;
}
</style>